package com.goldcn.sys.service;

import com.goldcn.sys.dao.GcnSysUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class SysUserRoleService {  
	@Autowired
	GcnSysUserRoleMapper gcnSysUserRoleMapper;
	public int selectPageNumByCondition(String roleID){
		String condition = "";
		if(roleID != null){
			condition += " and isStop = 0 and roleID = '"+roleID+"'";
		}
		int num = 0;
    	num = gcnSysUserRoleMapper.selectPageNumByCondition(condition);
    	return num;
	}
}
